#include <stdio.h>
#include "linuxlist.h"


#define SOCK_QUEUE_MAX_ELEM_NUMS    8

static struct mobile_net_t
{
    struct list_head entry;
    QueueHandle_t queue;
    int fd;
};

static LIST_HEAD(mobile_sock_list_head);



int mobile_socket(int domain, int type, int protocol)
{
    struct mobile_net_t * mnet = NULL;
   static int fd = 0;
        mnet = (struct mobile_net_t*)malloc(sizeof(int));
        if (!mnet) {
            return -1;
        }
        mnet->fd = fd++;
        mnet->queue = xQueueCreate(SOCK_QUEUE_MAX_ELEM_NUMS, sizeof(int));
        list_add_tail(&mnet->entry, &mobile_sock_list_head);
   
    return 0;
}

int main (void)
{
	
	return 0;
}
